using System;
using System.Text;

using BusinessLayer;

namespace UILayer {
	public class console {
		public static void Main (string[] args) {
			Person martin = new Person ();
			martin.Name = "Martin";
			martin.Age = 36;
			martin.Height = 1.82;
			
			Console.WriteLine("Datos de Martin");
			
			Console.WriteLine(martin.Name);
			Console.WriteLine(martin.Age);
			Console.WriteLine(martin.Height);
						
			Console.WriteLine("Persistiendo Martin");
			
			try {
				martin.Enroll ();
			}
			catch (Exception ex) {
				Console.WriteLine("Excepcion message: {0}"
					, ex.Message);
				
			}
			
			Console.WriteLine ("Una lista de personas");
			try {
				Person[] lista = Person.GetList ();
			}
			catch (Exception ex) {
				Console.WriteLine ("Exception message: {0}"
					, ex.Message);
			}

			Console.WriteLine("dummy call");
			
		}
	}
}
